home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / taropyon / silib / inc / vm / vmcf.h
Encoding:
C/C++ Source or Header  |  1994-11-16  |  1.2 KB  |  43 lines

  1. #ifndef    _VM_VMCF_H
  2. #define    _VM_VMCF_H
  3.  
  4. #ifndef    _VM_H
  5. #    include    <vm.h>
  6. #endif
  7.  
  8. #ifndef    CONST
  9. #    define    CONST
  10. #endif
  11.  
  12. extern int            VmFileMax;
  13. extern int            VmFileNum;
  14.  
  15. #define    VM_MALLOC(_siz)        (VmFuncMalloc)(_siz)
  16. #define    VM_FREE(_ptr)        (VmFuncFree)(_ptr)
  17. #define    VM_FOPEN(_fn,_md)    (VmFuncFopen)(_fn,_md)
  18. #define    VM_FCLOSE(_fp)        (VmFuncFclose)(_fp)
  19. #define    VM_REMOVE(_name)    (VmFuncRemove)(_name)
  20. #define    VM_GETDRV()            (VmFuncGetdrv)()
  21. #define    VM_ISDELIM(_ch)        (VmFuncIsdelim)(_ch)
  22. #define    VM_INGSTT(_stt)        { if ( VmFuncIngStt ) (VmFuncIngStt)(_stt);}
  23.  
  24. #define    VMING_DEC            (1)
  25. #define    VMING_INC            (0)
  26.  
  27. extern void           *(*VmFuncMalloc)(size_t);
  28. extern void            (*VmFuncFree)(void *);
  29. extern FILE           *(*VmFuncFopen)(CONST char *, CONST char *);
  30. extern int            (*VmFuncFclose)(FILE *);
  31. extern int            (*VmFuncRemove)(CONST char *);
  32. extern int            (*VmFuncGetdrv)(void);
  33. extern int            (*VmFuncIsdelim)(int);
  34. extern void            (*VmFuncIngStt)(int);
  35.  
  36. extern void            VM_hdlLink( VM_T *vm, VMHDL_T hdl );
  37. extern void            VM_hdlUnlink( VM_T *vm, VMHDL_T dat );
  38. extern long            VM_fileAlloc( VM_T *vm, size_t siz );
  39. extern void            VM_fileFree( VM_T *vm, long ap );
  40. extern int            VM_fileCheck(VM_T *vm);
  41.  
  42. #endif
  43.